package com.itbaizhan.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品控制器
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    /**
     * 获取商品信息
     * @param goodsName
     * @return
     */
    @SentinelResource("hot")
    @GetMapping("/getGoods")
    public String goods(String goodsName){

        return goodsName;
    }


}
